﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Services.SheepMale.Infrastructure.Migrations
{
    public partial class qwr1111 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Client",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "BirthDay",
                table: "EntityMarket",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "Birthweight",
                table: "EntityMarket",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "Breed",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CottageName",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Earbugles",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FatherEar",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FieldName",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "FixPrice",
                table: "EntityMarket",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "Level",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MomtherEar",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "MonthAge",
                table: "EntityMarket",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "PayPrice",
                table: "EntityMarket",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "Propagate",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "SheepSex",
                table: "EntityMarket",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SheepTypeInfo",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Stash",
                table: "EntityMarket",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "Weaningweight",
                table: "EntityMarket",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BirthDay",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Birthweight",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Breed",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "CottageName",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Earbugles",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "FatherEar",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "FieldName",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "FixPrice",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Level",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "MomtherEar",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "MonthAge",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "PayPrice",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Propagate",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "SheepSex",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "SheepTypeInfo",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Stash",
                table: "EntityMarket");

            migrationBuilder.DropColumn(
                name: "Weaningweight",
                table: "EntityMarket");

            migrationBuilder.AlterColumn<int>(
                name: "Client",
                table: "EntityMarket",
                type: "int",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);
        }
    }
}
